<%@page import="com.zhuoshi.dao.PurchaseDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");

String id = request.getParameter("id");
PurchaseDao dao = new PurchaseDao();
int rows = dao.delete(Integer.parseInt(id));
if(rows>0){
	response.sendRedirect("purchaslist.jsp");
}


%>
